<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>gitbook的安装 | 个人笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    
    <link rel="prev" href="../md/css/1.1css的样式.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2"
        data-chapter-title="gitbook的安装"
        data-filepath="md/gitbook的安装.md"
        data-basepath=".."
        data-revision="Thu Jun 07 2018 18:22:44 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/css/1.CSS的引入方式.html">
            
                
                    <a href="../md/css/1.CSS的引入方式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        css的引入方式
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/css/1.1css的样式.html">
            
                
                    <a href="../md/css/1.1css的样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        css的样式
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2" data-path="md/gitbook的安装.html">
            
                
                    <a href="../md/gitbook的安装.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        gitbook的安装
                    </a>
            
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >个人笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <p>#</p>
<p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x540E;&#xFF0C;&#x8FD8;&#x9700;&#x8981;&#x8FD0;&#x884C;&#xFF1A;</p>
<pre><code>&#x8FD0;&#x884C;&#x7248;&#x672C;&#x53F7;&#x4E3A;6.10.0&#x7684;nodejs
    nvm use 6.10.0
</code></pre><h2 id="&#x7B2C;&#x4E8C;&#x6B65;">&#x7B2C;&#x4E8C;&#x6B65;</h2>
<p>&#x5728;&#x547D;&#x4EE4;&#x63D0;&#x793A;&#x7B26;&#x7A97;&#x53E3;&#x4E2D;&#x8FD0;&#x884C;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>npm install gitbook-cli -g
</code></pre><p>&#x5B89;&#x88C5;&#x5B8C;&#x6210;&#x540E;&#x6700;&#x540E;&#x4F1A;&#x663E;&#x793A;&#xFF1A;&#x201C;without error&#x201D;</p>
<h2 id="&#x7B2C;&#x4E09;&#x6B65;-&#x5B89;&#x88C5;&#x4E2A;&#x4EBA;&#x7535;&#x5B50;&#x4E66;">&#x7B2C;&#x4E09;&#x6B65; &#x5B89;&#x88C5;&#x4E2A;&#x4EBA;&#x7535;&#x5B50;&#x4E66;</h2>
<p>1.&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;&#x6587;&#x4EF6;&#x5939;&#xFF0C;&#x5982;mybook&#xFF0C;&#x7136;&#x540E;&#x5728;mybook&#x6587;&#x4EF6;&#x5939;&#x5185;&#x65B0;&#x5EFA;&#x4E00;&#x4E2A;book.js&#x6587;&#x4EF6;&#x3002;
book.json&#x6587;&#x4EF6;&#x7528;&#x6765;&#x58F0;&#x660E;&#x5B89;&#x88C5;&#x7684;gitbook&#x7684;&#x7248;&#x672C;&#xFF0C;&#x5185;&#x5BB9;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code>    {
        &quot;gitbook&quot;:&quot;2.x.x&quot;
    }
</code></pre><p>&#x65B0;&#x5EFA;&#x597D;&#x8FD9;&#x4E9B;&#x6587;&#x4EF6;&#x4E4B;&#x540E;&#xFF0C;&#x5728;&#x547D;&#x4EE4;&#x7B26;&#x7A97;&#x53E3;&#x4E2D;&#x8FD0;&#x884C;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>    gitbook install
</code></pre><p>2.&#x5728;mybook&#x6587;&#x4EF6;&#x5939;&#x4E2D;&#x65B0;&#x5EFA;README.md&#x548C;SUMMARY.md&#x6587;&#x4EF6;</p>
<p>README.md&#x6587;&#x4EF6;&#x662F;&#x7528;&#x6765;&#x8BF4;&#x660E;&#x6B64;&#x7535;&#x5B50;&#x4E66;&#x7684;&#x7528;&#x5904;&#x3002;</p>
<p>SUMMARY.md&#x6587;&#x4EF6;&#x662F;&#x7528;&#x6765;&#x5B9A;&#x4E49;&#x6B64;&#x7535;&#x5B50;&#x4E66;&#x7684;&#x76EE;&#x5F55;&#xFF0C;&#x76EE;&#x5F55;&#x683C;&#x5F0F;&#x5982;&#x4E0B;:</p>
<pre><code> # Summary

     * [&#x76EE;&#x5F55;&#x4E00;](md/css/css.md)
     * [&#x76EE;&#x5F55;&#x4E8C;](md/css/css&#x7684;&#x4ECB;&#x7ECD;.md)
     * [&#x4E8C;&#x7EA7;&#x76EE;&#x5F55;](md/css/css&#x7684;&#x7248;&#x672C;/css&#x7B2C;&#x4E09;&#x7248;&#x672C;&#x7684;&#x4ECB;&#x7ECD;.md)
     * [&#x76EE;&#x5F55;&#x4E09;](md/css/css&#x7684;&#x5F15;&#x5165;&#x65B9;&#x5F0F;.md)
</code></pre><p>&#x5EFA;&#x597D;&#x8FD9;&#x4E9B;&#x6587;&#x4EF6;&#x4E4B;&#x540E;&#xFF0C;&#x8FD0;&#x884C;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
<p>&#x521D;&#x59CB;&#x5316;&#x7535;&#x5B50;&#x4E66;</p>
<pre><code>gitbook init
</code></pre><p>3.&#x542F;&#x52A8;&#x672C;&#x5730;&#x670D;&#x52A1;</p>
<p>&#x8FD0;&#x884C;&#x5982;&#x4E0B;&#x547D;&#x4EE4;&#xFF1A;</p>
<pre><code>gitbook serve
</code></pre><p>&#x8FD0;&#x884C;&#x547D;&#x4EE4;&#x540E;&#x4F1A;&#x51FA;&#x73B0;&#x672C;&#x5730;&#x670D;&#x52A1;&#x5730;&#x5740;&#xFF1A;<a href="http://localhost:4000" target="_blank">http://localhost:4000</a></p>
<p>&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x6253;&#x5F00;&#x6B64;&#x5730;&#x5740;&#x5C31;&#x53EF;&#x4EE5;&#x770B;&#x5230;&#x6211;&#x4EEC;&#x7684;&#x751F;&#x6210;&#x7684;&#x7535;&#x5B50;&#x4E66;</p>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../md/css/1.1css的样式.html" class="navigation navigation-prev navigation-unique" aria-label="Previous page: css的样式"><i class="fa fa-angle-left"></i></a>
        
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
